package com.jingdianjichi.subject.domain.hander.subject;

import com.jingdianjichi.subject.common.enums.SubjectInfoTypeEnum;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.domain.entity.SubjectOptionBO;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: longqizu
 * @Date: 2024/2/18 22:51
 */
@Component

public interface SubjectTypeHandler {
    /**
     枚举身份的识别
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际的题目的插入
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 根据ID查询题目
     */
    SubjectOptionBO query(int subjectId);
}
